package ourImage;

import java.awt.Point;

import javax.media.jai.PlanarImage;

/**
 * 
 * Extends the PlanarImage with useful informations and functioanlity
 * eg. image dump for planarimage  
 * 
 * @author Meraner Marcel
 */
public class OurPlanarImage {
    private PlanarImage image;
    private Point point;
    private boolean endOfImages = false;
    private String imageName;
    
    public void setImage(PlanarImage image){
        this.image = image;
    }
    public PlanarImage getImage(){
        return this.image;
    }
    public void setImageName(String name){
        this.imageName = name;
    }
    public String getImageName(){
        return this.imageName;
    }
    public void setPoint(Point p){
        this.point = p;
    }
    public Point getPoint(){
        return this.point;
    }
    public void setEndOfImages(boolean end){
        this.endOfImages = end;
    }
    public boolean getEndOfImages(){
        return this.endOfImages;
    }
    
    public OurPlanarImage clone(){
        OurPlanarImage entity = new OurPlanarImage();
        entity.setEndOfImages(this.endOfImages);
        entity.setImage(this.image);
        entity.setImageName(this.imageName);
        entity.setPoint(this.point);
        return entity;
    }
    
}
